
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<title>{$pagetitle}</title>
<meta name="keywords" content="{$metakeywords}" />
<meta name="description" content="{$metadescription}" />
{$templateheader}
<link rel="stylesheet" type="text/css" href="{$templateurl}css/styles.css" />
<!--[if IE 6.0]>
<style type="text/css">
#topnav {ldelim} margin-top:-5px;{rdelim}
</style>
<![endif]-->
</head>
<body>
<div id="head">
    <div id="logo">
        <h1><a href="{'index.php'|GetUrl}"><img src="{$templateurl}images/logo.gif" alt="{$siteCopyright}" /></a></h1>
        <table border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td valign="middle">
	{if !$userinfo.userid}
	<form action="{'login.php'|GetUrl}" method="post" id="login_form">
	<input type="hidden" name="thisurl" value="{if $smarty.post.thisurl}{$smarty.post.thisurl}{else}{$smarty.server.REQUEST_URI}{/if}" />
	{$lan_username}: <input type="text" class="text" name="loginusername" />&nbsp;
	{$lan_password}: <input type="password" class="text" name="loginpassword" />&nbsp;
	<input type="submit" id="login_submit" value="{$lan_login}" class="loginbutton" /></form>
	{/if}
	</td>
	<td valign="middle" height="20">
	{if $userinfo.userid}
	{$lan_welcome}: <font class="orangeb">{$userinfo.username}</font>&nbsp;&nbsp;&nbsp;|<a href="{'mydesk.php'|GetUrl}">{$lan_mydesk}</a>|<a href="{'login.php'|GetUrl:'':'':'':'logout=1'}">{$lan_logout}</a>
	{else}
	<a href="{'getbackpass.php'|GetUrl}">{$lan_getbackpass}</a>|<a href="{'register.php'|GetUrl}">{$lan_joinnow}</a>
	{/if}
	</td>
	</tr>
	<tr><td colspan="2" align="right" valign="bottom" height="22">
	{if $smarty.const.SITE_LANG == 'Chinese'}<a href="javascript:void(0);"><img src="{$templateurl}images/chinese2.gif" title="{$lan_chinese}" /></a>{else}<a href="#" onclick="setCookie('IPLANG{$smarty.const.COOKIE_KEY}', 'Chinese', 7); document.location=window.location.href;"><img src="{$templateurl}images/chinese.gif" title="{$lan_chinese}" /></a>{/if}{if $smarty.const.SITE_LANG == 'English'}<a href="javascript:void(0);"><img src="{$templateurl}images/english2.gif" title="{$lan_english}" /></a>{else}<a href="#" onclick="setCookie('IPLANG{$smarty.const.COOKIE_KEY}', 'English', 7); document.location=window.location.href;"><img src="{$templateurl}images/english.gif" title="{$lan_english}" /></a>{/if}
	</td></tr>
	</table>
    </div>
    <div id="menu">
	<ul>
	<li class="menu_home"><a href="{'index.php'|GetUrl}" {if !$smarty.server.SCRIPT_NAME|strstr:'categories' and !$smarty.server.SCRIPT_NAME|strstr:'news' and !$smarty.server.SCRIPT_NAME|strstr:'about' and !$smarty.server.SCRIPT_NAME|strstr:'contact' and !$smarty.server.SCRIPT_NAME|strstr:'publish' and !$smarty.server.SCRIPT_NAME|strstr:'mydesk'} class="homehere"{/if}>{$lan_home}</a></li>

	<li class="menu_other"><a href="{'categories.php'|GetUrl}" {if $smarty.server.SCRIPT_NAME|strstr:'categories'} class="here"{/if}>{$lan_categories}</a></li>

	<li class="menu_other"><a href="{'news.php'|GetUrl}" {if $smarty.server.SCRIPT_NAME|strstr:'news'} class="here"{/if}>{$lan_webnews}</a></li>

	<li class="menu_other"><a href="{'about.php'|GetUrl}" {if $smarty.server.SCRIPT_NAME|strstr:'about'} class="here"{/if}>{$lan_about}</a></li>

	<li class="menu_other"><a href="{'contact.php'|GetUrl}" {if $smarty.server.SCRIPT_NAME|strstr:'contact'} class="here"{/if}>{$lan_contact}</a></li>

	<li class="menu_other"><a href="{'publish.php'|GetUrl}" {if $smarty.server.SCRIPT_NAME|strstr:'publish'} class="here"{/if}>{$lan_publish|cat:$lan_image}</a></li>

	{if $userinfo.userid}<li class="menu_other"><a href="{'mydesk.php'|GetUrl}" {if $smarty.server.SCRIPT_NAME|strstr:'mydesk'} class="here"{/if}>{$lan_mydesk}</a></li>{/if}

	<li id="searchline">
	<form action="{'index.php'|GetUrl}" method="post" id="search_form">
	<input  type="hidden" name="c" value="{$categoryid}" />
	<input type="text" name="s" />				
	<input type="submit" class="submit" id="search_submit" name="messagesearchbtn" value="{$lan_search}" />
	</form>
	</li></ul>
    </div>
    <div id="topnav">
        <p>{$lan_yourposition}&nbsp;{$pagenav}&nbsp;</p>
    </div>
</div>

